package week09.question02.service;


import org.springframework.stereotype.Component;
import week09.question02.dto.UserReqDto;

import javax.jws.WebService;


@WebService(serviceName = "userService",//对外发布的服务名
        targetNamespace = "http://service.server.cxf.com/",//指定你想要的名称空间，通常使用使用包名反转
        endpointInterface = "week09.question02.service.UserService")
@Component
public class UserServiceImpl implements UserService {
    @Override
    public int addUser(String email, String username, String password) {
        System.out.println("注册用户:"+email);
        return 1;
    }

    @Override
    public int updateUser(UserReqDto userReqDto) {
        return 1;
    }
}